package classexercise;

public class Square extends Rectangle {
	    public Square(){}
	    public Square(double side ){
	    	   super.setWidth(side);
	    	   super.setLength(side);
	    }
	    public Square(double side,String color,boolean filled ){
	    	  this(side);
	    	  super.setColor(color);
	    	  super.setFilled(filled);
	    	  
	    }
		public String toString() {
			return "Square [side=" + getSide() + "]";
		}
		public double getSide() {
		return super.getLength();
		}
	
		public void setSide(double side) {
			super.setWidth(side);
			super.setLength(side);
		}
		public void setWidth(double side) {
			   super.setWidth(side);
		}
		public void setLength(double side){
			 super.setLength(side);
		}

}
